package com.zxy.lm.service;

import com.zxy.lm.entity.Book;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiusi
 * @since 2021-06-22
 */
public interface BookService extends IService<Book> {

    List<Book> queryAllBook();

    boolean decreaseBookStock(int bookId, int count);

    boolean increaseBookStock(int bookId, int count);

    Book queryById(Integer bookId);

    Integer getBookStockById(Integer bookId);
}
